package com.cloudsigns.factorymanager2.produce.activity.produce_team;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.cloudsigns.factorymanager2.BaseActivity;
import com.cloudsigns.factorymanager2.R;

public class ProduceTeamHandoverAcceptanceActivity extends BaseActivity {
    private RelativeLayout rl_back;
    private TextView tv_title;
    private EditText edt_qualified_num, edt_concession_num, edt_concession_reason, edt_back_num, edt_back_reason;
    private ImageView img_concession_reason, img_back_reason;
    private GridView gridView;
    private Button btn_confirm;

    @Override
    protected void onBaseCreate(Bundle savedInstanceState) {
        setContentView(R.layout.layout_produce_team_handover_acceptance);
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        rl_back = findViewById(R.id.rl_back);
        tv_title = findViewById(R.id.tv_title);
        edt_qualified_num = findViewById(R.id.edt_qualified_num);
        edt_concession_num = findViewById(R.id.edt_concession_num);
        edt_concession_reason = findViewById(R.id.edt_concession_reason);
        edt_back_num = findViewById(R.id.edt_back_num);
        edt_back_reason = findViewById(R.id.edt_back_reason);
        img_concession_reason = findViewById(R.id.img_concession_reason);
        img_back_reason = findViewById(R.id.img_back_reason);
        gridView = findViewById(R.id.gridView);
        btn_confirm = findViewById(R.id.btn_confirm);
    }

    @Override
    protected void initData(Bundle savedInstanceState) {
        tv_title.setText(getResources().getString(R.string.handover_acceptance));
    }

    @Override
    public void setListener() {
        rl_back.setOnClickListener(this);
        img_concession_reason.setOnClickListener(this);
        img_back_reason.setOnClickListener(this);
        btn_confirm.setOnClickListener(this);
    }

    @Override
    public void widgetClick(View view) {
        switch (view.getId()) {
            case R.id.rl_back:
                finish();
                break;
            // 让步原因
            case R.id.img_concession_reason:
                break;
            // 退回原因
            case R.id.img_back_reason:
                break;
            // 确认验收
            case R.id.btn_confirm:
                break;
        }
    }
}
